using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TraceNetworkTools
{
    /// <summary>
    /// <para>Disable Network Topology</para>
    /// <para>Disables the network topology for an existing trace network.</para>
    /// <para>禁用现有追踪网络的网络拓扑。</para>
    /// </summary>    
    [DisplayName("Disable Network Topology")]
    public class DisableNetworkTopology : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DisableNetworkTopology()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_trace_network">
        /// <para>Input Trace Network</para>
        /// <para>The trace network where the network topology will be disabled.</para>
        /// <para>将在其中禁用网络拓扑的跟踪网络。</para>
        /// </param>
        public DisableNetworkTopology(object _in_trace_network)
        {
            this._in_trace_network = _in_trace_network;
        }
        public override string ToolboxName => "Trace Network Tools";

        public override string ToolName => "Disable Network Topology";

        public override string CallName => "tn.DisableNetworkTopology";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_trace_network, _out_trace_network];

        /// <summary>
        /// <para>Input Trace Network</para>
        /// <para>The trace network where the network topology will be disabled.</para>
        /// <para>将在其中禁用网络拓扑的跟踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_trace_network { get; set; }


        /// <summary>
        /// <para>Updated Trace Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_trace_network { get; set; }


        public DisableNetworkTopology SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}